<template>
    <div class="recommends">
        <div :key="item.index" v-for = "item in recommends" class="rec-item">
            <a :href = "item.link">
                <img :src= "item.image" >
                <div class="text">{{item.title}}</div>
            </a>
        </div>
    </div>
</template>
<script>
export default {
    name:"RecommendView",
    props:{
        recommends:{
        type:Array,
        default(){
            return []
        }
        }
       
    }
    
}
</script>
<style scoped>
    .recommends{
        border-bottom: 8px solid #eee;
        display: flex;
        width: 100%;
        font-size: 12px;
    }
    .rec-item{ 
       text-align: center;
       flex: 1;
       margin:10px 0px;
    
    }
    .rec-item img{
       
        height: 70px;
    }
    .text{
        margin-top:5px;
    }
</style>